// components/agree/agree.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    checked: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toggleChecked: function () {
      let checked = !this.data.checked
      this.setData({
        checked: checked
      })
      this.triggerEvent('toggle', {checked})
    },
    /**
     * 点击协定
     */
    bindtapAgreement (e) {
      const type = e.currentTarget.dataset.type
      console.log(type);
      wx.navigateTo({
        url: '/pagesA/agreement/agreement?type=' + type,
      })
    }
  }
})
